//
//  KKDetailViewController.m
//  KKAnimation
//
//  Created by Mac mini on 16/2/2.
//  Copyright © 2016年 JuniorCodingPerson. All rights reserved.
//

#import "KKDetailViewController.h"

#import "AppDelegate.h"

@interface KKDetailViewController ()

@end

@implementation KKDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor yellowColor];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


//- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
//    
//    AppDelegate *delegate = [[UIApplication sharedApplication] delegate];
//    
//    if ([delegate portrait]) {
//        return UIInterfaceOrientationIsPortrait(toInterfaceOrientation);
//    }
//    else {
//        return UIInterfaceOrientationIsLandscape(toInterfaceOrientation);
//    }
//}
//
//- (BOOL)shouldAutorotate {
//    
//    return TRUE;
//}
//
//- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
//    
//    AppDelegate *delegate = [[UIApplication sharedApplication] delegate];
//    
//    if ([delegate portrait]) {
//        return UIInterfaceOrientationMaskPortraitUpsideDown | UIInterfaceOrientationMaskPortrait;
//    }
//    else {
//        return UIInterfaceOrientationMaskLandscape;
//    }
//}

#pragma mark - 

- (IBAction)kk_back:(id)sender {
    
    
    [self dismissViewControllerAnimated: true completion: nil];
    
}


@end
